package io.wdb.modules.activity.wxapp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import io.wdb.common.utils.UUIDGenerator;


import io.wdb.modules.activity.wxapp.dao.HdScanActivityDao;
import io.wdb.modules.activity.wxapp.entity.HdScanActivityEntity;
import io.wdb.modules.activity.wxapp.service.HdScanActivityService;



@Service("hdScanActivityService")
public class HdScanActivityServiceImpl implements HdScanActivityService {
	@Autowired
	private HdScanActivityDao hdScanActivityDao;
	
	@Override
	public HdScanActivityEntity queryObject(String id){
		return hdScanActivityDao.queryObject(id);
	}
	
	@Override
	public List<HdScanActivityEntity> queryList(Map<String, Object> map){
		return hdScanActivityDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return hdScanActivityDao.queryTotal(map);
	}
	
	@Override
	public void save(HdScanActivityEntity hdScanActivity){
		hdScanActivity.setId(UUIDGenerator.getUUID());
		hdScanActivityDao.save(hdScanActivity);
	}
	
	@Override
	public void update(HdScanActivityEntity hdScanActivity){
		hdScanActivityDao.update(hdScanActivity);
	}
	
	@Override
	public void delete(String id){
		hdScanActivityDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		hdScanActivityDao.deleteBatch(ids);
	}
	
}
